import request from "@/utils/request";

// 查询面料维护列表
export function listFabric(query) {
  return request({
    url: "/md/fabric/list",
    method: "get",
    params: query,
  });
}

// 查询面料维护详细
export function getFabric(mdFabricId) {
  return request({
    url: "/md/fabric/" + mdFabricId,
    method: "get",
  });
}

// 新增面料维护
export function addFabric(data) {
  return request({
    url: "/md/fabric",
    method: "post",
    data: data,
  });
}

// 修改面料维护
export function updateFabric(data) {
  return request({
    url: "/md/fabric",
    method: "put",
    data: data,
  });
}

// 删除面料维护
export function delFabric(mdFabricId) {
  return request({
    url: "/md/fabric/" + mdFabricId,
    method: "delete",
  });
}
